package com.account.domains;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 交易回调消息表
 * </p>
 *
 * @author ganhuaicheng
 * @since 2017-09-19
 */
@TableName("account_notify")
public class AccountNotify implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 交易id
	 */
	@TableField(value="trade_id")
	private Long tradeId;

	/**
	 * 通知网址
	 */
	private String url;

	/**
	 * 交易号
	 */
	private String dealsn;

	/**
	 * 执行状态 0:未执行 1:执行中 2:执行成功　3:执行失败
	 */
	@TableField(value="trade_status")
	private Integer tradeStatus;

	/**
	 * 还款结果描述(失败讯息)
	 */
	@TableField(value="result_msg")
	private String resultMsg;

	/**
	 * 回调内容
	 */
	private String content;

	/**
	 * 通知状态  -1:无需通知  0:未通知  1:通知中 2:通知成功 3:通知失败
	 */
	@TableField(value="notify_state")
	private Integer notifyState;

	/**
	 * 通知次数
	 */
	@TableField(value="notify_count")
	private Integer notifyCount;

	/**
	 * 服务器响应讯息
	 */
	@TableField(value="response_message")
	private String responseMessage;

	/**
	 * 下次通知执行的时间
	 */
	@TableField(value="notify_schedule")
	private Date notifySchedule;

	/**
	 * 处理次数
	 */
	@TableField(value="proccess_count")
	private Integer proccessCount;

	/**
	 * 任务执行时间
	 */
	@TableField(value="schedule_date")
	private Date scheduleDate;

	/**
	 * 逻辑删除标记  0：有效;1：删除
	 */
	@TableField(value="is_delete")
	private Integer isDelete;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(value="update_time")
	private Date updateTime;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTradeId() {
		return tradeId;
	}

	public void setTradeId(Long tradeId) {
		this.tradeId = tradeId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDealsn() {
		return dealsn;
	}

	public void setDealsn(String dealsn) {
		this.dealsn = dealsn;
	}

	public Integer getTradeStatus() {
		return tradeStatus;
	}

	public void setTradeStatus(Integer tradeStatus) {
		this.tradeStatus = tradeStatus;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getNotifyState() {
		return notifyState;
	}

	public void setNotifyState(Integer notifyState) {
		this.notifyState = notifyState;
	}

	public Integer getNotifyCount() {
		return notifyCount;
	}

	public void setNotifyCount(Integer notifyCount) {
		this.notifyCount = notifyCount;
	}

	public String getResponseMessage() {
		return responseMessage;
	}

	public void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}

	public Date getNotifySchedule() {
		return notifySchedule;
	}

	public void setNotifySchedule(Date notifySchedule) {
		this.notifySchedule = notifySchedule;
	}

	public Integer getProccessCount() {
		return proccessCount;
	}

	public void setProccessCount(Integer proccessCount) {
		this.proccessCount = proccessCount;
	}

	public Date getScheduleDate() {
		return scheduleDate;
	}

	public void setScheduleDate(Date scheduleDate) {
		this.scheduleDate = scheduleDate;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
